using System;
using System.Collections.Generic;
using System.Text;
using sbMembership.Library.Presenters;
using sbMembership.Library.Presenters.ViewInterfaces;

namespace Tests.sbMembership.AddRole
{
    class MockAddRoleView : IAddRoleView
    {
        #region IAddRoleView Members

        public MockAddRoleView()
        {
            roleToAdd = TestSetup.testAddRoleName;
        }

        private string message;
        public string Message
        {
            set { message = value; }
            get { return message; }
        }

        private AddRolePresenter presenter;
        public void AttachPresenter(AddRolePresenter presenter)
        {
            this.presenter = presenter;
        }

        private string roleToAdd = "";
        public string RoleToAdd
        {
            get { return roleToAdd; }
            set { roleToAdd = value; }
        }

        public void ResetForm()
        {
            roleToAdd = "";
        }
       #endregion
    }
}
